package com.ryan.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author raofy
 * @date 2021-10-20 14:38
 * @desc
 */
@Slf4j
@RestController
public class MyTestController {

    @GetMapping("hello")
    public String hello(@RequestParam String name) {
        log.info("invoked name = {}", name);
        return "hello " + name;
    }
}
